class_name Effect
extends RefCounted

func execute(effect_data: Dictionary) -> void:
	for effect in effect_data:
		#print(effect_data.get(effect) is Array)
		mate_effect(effect, effect_data.get(effect))

func mate_effect(effect: String, effect_value: Array) -> void:
	match effect:
		
		"attack_number":
			attack_number(effect_value[0])
		
		"attack_magnification":
			attack_magnification(effect_value[0])
		
		"ammo_number":
			ammo_number(effect_value[0])

func attack_number(value: float) -> void:
	Game.game_stats.attack_number_addition += value

func attack_magnification(value: float) -> void:
	Game.game_stats.attack_magnification += value

func ammo_number(_value: float) -> void:
	Game.game_stats.ammo_number += 1
